<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>基本使用</title>
    <style>
        .outer {
           width: 800px;
           height: 100px;
           border: 2px solid black;
        }
        @keyframes toright {
            from {

            }
            
            to {
                transform: translate(700px) rotate(360deg);
                background-color: red;
                border-radius: 50%;
            }
        }
        .inner {
            width: 100px;
            height: 100px; 
            background-color: skyblue;
            animation-name: toright;
            animation-duration: 3s;
            animation-delay: 1s;
        }

        
    </style>
</head>
<body>
    <div class="outer">
        <div class="inner"></div>
    </div>
</body>
</html>